<template>
  <div class="registerDetail">
    <div class="task_header">
      <div class="top_title">
        <div class="top_title_back" @click="onClickLeft">
          <i class="iconfont icon-back"></i>
        </div>
        <div class="top_title_val">{{ $route.meta.title }}</div>
      </div>
    </div>
    <div class="detailbox_item">
      <div class="detailbox_item_title">客户群信息</div>
      <van-pull-refresh class="groupInfo_content h600" v-model="groupRefreshing" @refresh="groupOnRefresh">
        <van-list
          v-model="groupLoading"
          :finished="groupFinished"
          finished-text="没有更多了"
          @load="getCustomerGroupInfo"
          v-if="groupList && groupList.length != 0"
        >
          <div class="groupInfo">
            <div class="groupInfo_item" v-for="(item, index) in groupList" :key="index">
              <div class="groupInfo_icon">群</div>
              <div class="groupInfo_detail">
                <div class="groupInfo_name">{{ item.groupName }}</div>
                <div class="groupInfo_txt">
                  <span class="groupInfo_span">{{ item.groupNums }}人</span>|
                  <span class="groupInfo_span1">群主：{{ item.adminUserName }}</span>
                </div>
                <div class="groupInfo_txt1">创建时间：{{ item.createTime }}</div>
              </div>
              <!-- <div class="groupInfo_btn" @click.stop="handleShowUser(item)">查看群成员</div> -->
              <div class="groupInfo_btn">
                      <div  @click.stop="handleShowUser(item)">查看群成员</div>
                      <div class="to_chat">
                        <i class="iconfont  icon-dir-right" style="color: #4898FF;font-size: 22px;"  @click="openChat(item)"></i>
                      </div>
                    </div>
            </div>
          </div>
        </van-list>
        <div class="no_icon" v-else>
          <img class="no_icon_img" src="@/assets/images/no_icon.png" />
          <div class="no_icon_txt">暂无内容</div>
        </div>
      </van-pull-refresh>
    </div>

    <!-- 群成员列表 -->
    <van-dialog v-model="showUser" title show-cancel-button :showConfirmButton="false" :before-close="beforeClose">
      <van-pull-refresh class="userList_content h600" v-model="userRefreshing" @refresh="userOnRefresh">
        <van-list
          v-model="userLoading"
          :finished="userFinished"
          finished-text="没有更多了"
          @load="showUserData"
          v-if="wxUserList && wxUserList.length != 0"
        >
          <div class="contact_list">
            <div class="contact_item flex userList_item membot" v-for="(item, index) in wxUserList" :key="index">
              <div class="contact_lt flex">
                <img class="contact_header" src="@/assets/images/header_img.png" />
                <div class="contact_name">{{ item.menberName ? item.menberName : '-' }}</div>
              </div>
              <div class="contact_type">{{ item.memberType ? item.memberType : '-' }}</div>
            </div>
          </div>
        </van-list>
        <div class="no_icon pt80" v-else>
          <img class="no_icon_img" src="@/assets/images/no_icon.png" />
          <div class="no_icon_txt">暂无数据</div>
        </div>
      </van-pull-refresh>
    </van-dialog>
  </div>
</template>

<script>
import { Toast } from 'vant'
import vipInfoApi from '@/api/vipInfoApi'
import taskApi from '@/api/taskApi'
import axios from 'axios'
import qs from 'qs'
import { getCookies } from '@/utils/util.js'

const base_url = process.env.BASE_API

export default {
  name: 'vipInfoDetail',
  components: { Toast },
  data() {
    return {
      active: 0,
      memberId: '',
      value: '',
      dataSource: {},
      bindCar: [],
      bindCarHis: [],
      pointRecord: [],

      groupList: [],
      wxUserList: [],
      showUser: false,
      groupRefreshing: false,
      groupLoading: false,
      groupFinished: false,
      groupPageNo: 1,
      groupIsLoadData: false,

      userRefreshing: false,
      userLoading: false,
      userFinished: false,
      userPageNo: 1,
      userIsLoadData: false,
      groupData: {},
      userInfo: JSON.parse(localStorage.getItem('userInfo')),
    }
  },

  mounted() {
    if (this.$route.params && this.$route.params.carNo) {
      this.carNo = this.$route.params.carNo
      this.getCustomerGroupInfo()
    }
  },
  methods: {
    getDetail(memberId) {
      Toast.loading('加载中...')
      vipInfoApi.getMemberInformationById({ memberId }).then((res) => {
        Toast.clear()
        if (res.code == 1) {
          if (res.data) {
            this.dataSource = res.data
            this.bindCar = this.dataSource.bindCar
            this.bindCarHis = this.dataSource.bindCarHis
          } else {
            this.dataSource = {
              mobile: '18405055250',
              ownerStatus: '已认证',
              memberName: '123',
            }
            this.bindCar = [
              {
                vinCode: '1231231231321123',
                cardNo: '闽D12345',
                bindDate: '2023-02-02',
              },
              {
                vinCode: '123123123',
                cardNo: '闽D12345',
                bindDate: '2023-02-02',
              },
            ]
            this.bindCarHis = [
              {
                vinCode: '1231231231321123',
                cardNo: '闽D12345',
                bindDate: '2023-02-02',
                bindResultType: '绑定成功',
              },
              {
                vinCode: '123123123',
                cardNo: '闽D12345',
                bindDate: '2023-02-02',
                bindResultType: '绑定成功',
              },
            ]
            this.pointRecord = [
              {
                changePoint: '200',
                overDate: '2020-10-10',
                effectDate: '2020-10-10',
                remark: '1231313',
                changeMode: 1,
              },
              {
                changePoint: '200',
                overDate: '2020-10-10',
                effectDate: '2020-10-10',
                remark: '1231313',
                changeMode: 2,
              },
            ]
          }
        }
      })
    },
    onClickLeft() {
      this.$router.go(-1)
    },
    // 下拉刷新
    groupOnRefresh() {
      // 清空列表数据
      this.groupList = []
      this.groupFinished = false
      // 重新加载数据
      // 将 loading 设置为 true，表示处于加载状态
      this.groupLoading = true
      this.groupRefreshing = false
      this.groupInitData()
    },
    groupInitData() {
      this.groupPageNo = 1
      this.getCustomerGroupInfo()
    },
    // 获取群信息
    getCustomerGroupInfo() {
      if (this.groupIsLoadData) return
      this.groupIsLoadData = true
      this.groupLoading = true
      this.groupFinished = false
      taskApi
        .getCustomerGroupInfo({
          carNo: this.carNo, //车牌号码，
          wetChatId: this.userInfo.corpGroup ? this.userInfo.corpGroupId : this.userInfo.corpId, //企业微信ID，
          pageNo: this.groupPageNo, //当前页数，默认从1开始，每页显示十条，int，不能为空或者小于1
        })
        .then((res) => {
          Toast.clear()
          if (this.groupPageNo == 1) {
            this.groupList = res.data || []
          } else {
            this.groupList = this.groupList.concat(res.data || [])
          }
          this.groupPageNo += 1

          if (res.data.length < 10) {
            this.groupFinished = true
            this.groupIsLoadData = true
          }
          this.groupIsLoadData = false
          this.groupLoading = false
        })
        .catch((res) => {
          this.groupLoading = false
          this.groupIsLoadData = false
        })
    },

    // 群成员下拉刷新
    userOnRefresh() {
      // 清空列表数据
      this.wxUserList = []
      this.userFinished = false
      // 重新加载数据
      // 将 loading 设置为 true，表示处于加载状态
      this.userLoading = true
      this.userRefreshing = false
      this.userInitData()
    },
    userInitData() {
      this.userPageNo = 1
      this.showUserData()
    },
    //  查看群成员
    showUserData() {
      if (this.userIsLoadData) return
      this.userIsLoadData = true
      this.userLoading = true
      this.userFinished = false
      taskApi
        .getMemberInfo({
          groupId: this.groupData.groupId, //企业群ID，必填
          // groupId: '3104758703119260', //企业群ID，必填
          pageNo: this.userPageNo, //当前页数，默认从1开始，每页显示十条，int，不能为空或者小于1
        })
        .then((res) => {
          console.log(this.wxUserList)
          res.data.forEach((item) => {
            item.memberType = item.memberType.replace('["', '')
            item.memberType = item.memberType.replace('"]', '')
          })
          Toast.clear()
          if (this.userPageNo == 1) {
            this.wxUserList = res.data || []
          } else {
            this.wxUserList = this.wxUserList.concat(res.data || [])
          }
          this.userPageNo += 1

          if (res.data.length < 10) {
            this.userFinished = true
            this.userIsLoadData = true
          }
          this.userIsLoadData = false
          this.userLoading = false
        })
        .catch((res) => {
          this.userLoading = false
          this.userIsLoadData = false
        })
    },
    handleShowUser(data) {
      this.showUser = true
      this.groupData = data
      this.userInitData()
    },
    beforeClose(action, done) {
      if (action === 'confirm') {
        return done(false)
      } else {
        this.wxUserList = []
        return done()
      }
    },
    openChat(item) {
      axios({
        url: `${base_url}/proxy/qywx/jsdkConfig`,
        method: 'post',
        data: qs.stringify(
          // { url: 'http://wycl.autocnd.com:41080/ysc/assessManageDetail' },
          { url: location.href.split('?')[0], type: 'app' },
          { encode: false },
        ),
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          satoken: getCookies('token'),
        },
      }).then((res) => {
        console.log('jsdkConfig:', res)
        let jsdk = res.data.data
        wx.agentConfig({
          corpid: jsdk.corpid, // 必填，企业微信的corpid，必须与当前登录的企业一致
          agentid: jsdk.agentid, // 必填，企业微信的应用id （e.g. 1000247）
          timestamp: jsdk.timestamp, // 必填，生成签名的时间戳
          nonceStr: jsdk.nonceStr, // 必填，生成签名的随机串
          signature: jsdk.signature, // 必填，签名，见附录-JS-SDK使用权限签名算法
          jsApiList: ['openExistedChatWithMsg'], //必填，传入需要使用的接口名称
          success: function (res) {
            console.log('agentConfig权限成功返回信息:', res)
            wx.invoke("openExistedChatWithMsg", {
              chatId: item.groupChatId,
              // msg: {
              //   msgtype: "link",
              // }
            },function(res){
              if (res.err_msg == "openExistedChatWithMsg:ok") {
              } else {
                Notify({
                  type: 'warning',
                  message: '您暂时无权限打开该群聊！',
                })
              }
            });
          },
          fail: function (res) {
            console.log('agentConfig权限失败返回信息:', res)
            if (res.errMsg.indexOf('function not exist') > -1) {
              alert('版本过低请升级')
            }
          },
        })
      })
    }
  },
}
</script>

<style lang="less" scoped>
.task_header {
  background: url('~@/assets/images/title_bg.png') no-repeat center;
  font-size: 0.24rem;
  height: 50px;
  background-size: 100% 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;

  .top_title {
    position: relative;
    width: 100%;
    height: 50px;

    .top_title_back {
      position: absolute;
      left: 10px;
      line-height: 50px;
      color: #fff;
    }

    .top_title_val {
      text-align: center;
      line-height: 50px;
      color: #fff;
      font-weight: bold;
      font-size: 16px;
    }
    .task_transbox {
      position: absolute;
      right: 10px;
      top: 20px;
      color: #fff;
      z-index: 10;
      font-weight: 400;
      font-size: 12px;
      text-align: center;
      .task_trans {
        width: 24px;
        display: block;
        margin: auto;
      }
    }
  }

  .task_header_data {
    .task_header_date {
      margin-bottom: 10px;
      display: flex;
      align-items: center;

      .task_header_date_w {
        width: 12.5%;
      }

      .task_header_date_item {
        width: 12.5%;
        text-align: center;
        color: #fff;
        font-size: 14px;
      }
    }

    .task_header_followData {
      display: flex;
      align-items: center;
      color: #fff;
      margin-bottom: 10px;

      .task_header_followData_tt {
        width: 12.5%;
        text-align: center;
      }

      .task_header_followData_item {
        width: 12.5%;
        text-align: center;
        font-size: 12px;
        font-weight: bold;
      }
    }
  }
}
.vip_detail {
  padding-top: 50px;
  .curInfo {
    .curInfo_title {
      margin-top: 20px;
      text-align: center;
      font-size: 14px;
      font-weight: bold;
      position: relative;
      &::before {
        content: '';
        background: #ccc;
        width: 100px;
        height: 1px;
        position: absolute;
        left: 20px;
        top: 6px;
      }
      &::after {
        content: '';
        background: #ccc;
        width: 100px;
        height: 1px;
        position: absolute;
        right: 20px;
        top: 6px;
      }
    }
    .cur_list {
      margin-top: 20px;
      .cur_item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        .cur_index {
          font-size: 16px;
          text-align: center;
          width: 40px;
        }
        .cur_content {
          background: #f7f7f7;
          width: 300px;
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          padding: 10px;
          border-radius: 5px;
          .cur_box {
            width: 50%;
            margin-bottom: 15px;
            .cur_label {
              text-align: center;
              font-size: 14px;
              margin-bottom: 10px;
              color: #999;
            }
            .cur_val {
              text-align: center;
              font-size: 14px;
              font-weight: bold;
              color: #333;
            }
          }
        }
      }
    }
  }
}
.mb0 {
  margin-bottom: 0 !important;
}
.tableData {
  margin: 0 16px;
  // height: 500px;
  border-collapse: collapse;
  text-align: center;
  // height: auto; /* 自动计算高度 */
  border-radius: 5px;
  overflow-x: hidden;
  margin-top: 20px;
  padding-bottom: 50px;

  .tableDatabox {
    // overflow-x: scroll;
  }

  table {
    // min-width: 800px;
    font-size: 0.24rem;
    border: none;
    width: 100%;
  }
  .last_item td {
    font-weight: bold;
  }

  .tab_item {
    background: #3975c6;
  }
  tr > td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    // background: #3975c6;
    // color: #fff;
  }
  tr > th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #3975c6;
    color: #fff;
  }

  tr {
    th {
      position: sticky; /* 将表头固定在位置 */
      top: 0; /* 与容器顶部对齐 */
      font-size: 12px;
      border: 1px solid #3975c6;
      padding: 0.2rem 0;
      background: #3975c6;
      color: #fff;
      font-weight: bold;
    }
    td {
      padding: 0.1rem 0;
      border: 1px solid #3975c6;
      color: #333;
      font-size: 12px;
    }
  }
}
.val_status {
  /deep/ .van-field__control--right {
    color: rgb(206, 0, 0);
  }
}
.add {
  color: rgb(216, 0, 0) !important;
}
.cut {
  color: rgb(1, 226, 50) !important;
}
.detailbox_item {
  margin-top: 20px;
  background: #fff;
  padding: 10px;
  .detailbox_item_title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2129;
    margin-bottom: 14px;
    background: url('~@/assets/images/ttbg.png') no-repeat left bottom;
    background-size: 32px 6px;
  }
  .detail_content {
    background: #f9fafc;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #fbfcfe;
    padding: 17px 16px;

    .task_item_type {
      margin-bottom: 20px;

      .task_item_tt {
        font-weight: 800;
        font-size: 12px;
        color: #86909c;
        margin-bottom: 10px;
      }
      .task_item_val {
        font-weight: 700;
        font-size: 16px;
        color: #333333;
      }
      .task_item_desc {
        font-weight: 300;
        font-size: 14px;
        color: #000000;
        background: #f2f3f5;
        padding: 5px 6px;
      }
    }
    .task_itembox {
      overflow: hidden;
      .task_itembox_con {
        width: 50%;
        margin-bottom: 15px;
        float: left;
        .task_label {
          font-weight: 400;
          font-size: 12px;
          color: #86909c;
          margin-bottom: 5px;
        }
        .task_value {
          font-weight: 700;
          font-size: 16px;
          color: #2f2f2f;
        }
      }
    }
  }
  .relat_tab {
    display: flex;
    margin-bottom: 10px;
    .relat_tab_item {
      font-weight: 500;
      font-size: 12px;
      color: #333333;
      border-radius: 4px;
      padding: 5px 8px;
      background: #f7f7f7;
      margin-right: 5px;
      &.active {
        color: #165dff;
        background: #d8e3ff;
      }
    }
  }
  .relat_content {
    .relat_item {
      background: #ffffff;
      box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.09);
      border-radius: 4px 4px 4px 4px;
      border: 1px solid #fbfcfe;
      margin-bottom: 20px;
      padding: 10px 9px 12px;

      .relat_content_header {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;

        .name {
          font-weight: bold;
          font-size: 14px;
          color: #333333;
        }
        .status {
          font-weight: 700;
          font-size: 12px;
          color: #00b42a;
          background: #e8ffea;
          border-radius: 2px 2px 2px 2px;
          padding: 5px 8px;
          &.status2 {
            background: rgba(255, 48, 33, 0.2);
            color: #ff1100;
          }
        }
      }
      .relat_carInfo {
        font-weight: 300;
        font-size: 14px;
        color: #000000;
        background: #f2f3f5;
        padding: 5px 6px;
        margin-bottom: 12px;
      }
      .relat_user {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        font-size: 12px;
        color: #165dff;
        background: #e8f5ff;
        border-radius: 2px 2px 2px 2px;
        padding: 5px 6px;
      }
    }
  }
  .followInfo_content {
    .followInfo_item {
      padding: 10px 0px 10px 20px;

      .followInfo_top {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        .followInfo_circle {
          background: #f2f2f2;
          border-radius: 50%;
          width: 9px;
          height: 9px;
          margin-right: 10px;
        }
        .followInfo_name {
          font-weight: 700;
          font-size: 14px;
          color: #86909c;
        }
      }

      .followInfo_box {
        display: flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;

        .followInfo_linebox {
          width: 1px;
          position: relative;
          -ms-flex-item-align: stretch;
          align-self: stretch;
          background: #f2f2f2;
          margin: 0 10px 0 4px;
        }
        .followInfo_val {
          width: 100%;
          padding: 12px 16px;
          background: #f9fafc;
          border-radius: 4px 4px 4px 4px;
          border: 1px solid #fbfcfe;
          flex: 1;
          .followInfo_val_item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            .item_label {
              font-weight: 400;
              font-size: 14px;
              color: #86909c;
            }
            .item_val {
              font-weight: 700;
              font-size: 14px;
              color: #2f2f2f;
            }
          }
          .followInfo_val_item2 {
            .item_label {
              font-weight: 400;
              font-size: 14px;
              color: #86909c;
              margin-bottom: 10px;
            }
            .item_val {
              font-weight: 300;
              font-size: 14px;
              color: #86909c;
              background: #f2f3f5;
              padding: 5px 6px;
            }
          }
        }
      }
      &.active {
        .followInfo_top {
          .followInfo_circle {
            background: #165dff;
          }
          .followInfo_name {
            color: #165dff;
          }
        }
        .followInfo_box {
          .followInfo_linebox {
            background: #165dff;
          }
        }
      }
    }
  }
  .carInfo_content {
    background: #f9fafc;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #fbfcfe;
    padding: 7px 16px;
    .carInfo_item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      .item_label {
        font-weight: 400;
        font-size: 12px;
        color: #86909c;
      }
      .item_val {
        font-weight: 700;
        font-size: 12px;
        color: #333333;
      }
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .contact_content {
    .contact_item {
      box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.02);
      border-radius: 4px 4px 4px 4px;
      border: 1px solid #f4f4f6;
      margin-bottom: 3px;
      padding: 12px 10px 12px 10px;

      .contact_top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 14px;
        .item_label {
          font-weight: 700;
          font-size: 12px;
          color: #165dff;
          background: #e8f5ff;
          border-radius: 2px 2px 2px 2px;
          padding: 4px 5px;
        }
        .item_icon {
          display: flex;
          .item_img {
            width: 29px;
            height: 29px;
            margin-right: 17px;
            &:last-child {
              margin-right: 0;
            }
          }
        }
      }
      .contact_bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 4px;
        .item_name {
          display: flex;

          .txt1 {
            font-weight: 400;
            font-size: 12px;
            color: #86909c;
          }
          .txt2 {
            font-weight: 700;
            font-size: 12px;
            color: #2f2f2f;
          }
        }
      }
    }
  }

  .repair_content {
    .repair_list {
      .repair_item {
        box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.05);
        border-radius: 4px 4px 4px 4px;
        border: 1px solid #f4f4f6;
        padding: 10px;
        margin-bottom: 10px;
        .item_top {
          display: flex;
          justify-content: space-between;
          border-bottom: 1px solid #f7f5f5;
          padding-bottom: 10px;
          .item_num {
            display: flex;
            align-items: center;
            .item_icon {
              width: 11px;
              display: block;
              height: 11px;
              margin-right: 5px;
            }
            .item_name {
              font-weight: 800;
              font-size: 14px;
              color: #333333;
            }
          }
          .item_btn {
            font-weight: 400;
            font-size: 12px;
            color: #165dff;
          }
        }
        .item_bottom {
          padding-top: 8px;
          .item_box {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            align-items: center;
            width: 100%;

            .item_lt {
              display: flex;

              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
              }
              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
              }
            }
            .item_rt {
              background: #e8f5ff;
              border-radius: 2px 2px 2px 2px;
              font-weight: 700;
              font-size: 10px;
              color: #165dff;
              padding: 3px 5px;
              display: flex;

              .item_lable {
              }
              .item_val {
              }
              .item_tel {
                margin-left: 5px;
              }
            }
            .item_rt2 {
              display: flex;

              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
              }
              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
              }
            }
          }
          .item_box2 {
            .item_lt {
              display: flex; /* 使用弹性盒模型 */
              .item_lable {
                font-weight: 400;
                font-size: 12px;
                color: #86909c;
                width: 60px;
              }
              .item_val {
                font-weight: 400;
                font-size: 12px;
                color: #2f2f2f;
                width: calc(100% - 60px);
              }
            }
          }
        }
      }
    }
  }

  .card_content {
    min-height: calc(100vh - 150px);

    .card_item {
      border-radius: 4px;
      position: relative;
      height: 86px;
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      background: #fff;
      .item_lt {
        width: 134px;
        height: 86px;
        font-weight: 700;
        font-size: 36px;
        line-height: 86px;
        color: #ffffff;
        background: url('~@/assets/images/card_bg.png') no-repeat center;
        background-size: 134px 86px;
        text-align: center;
        margin-right: 10px;
        border-radius: 0px 12px 12px 0px;
      }
      .item_rt {
        padding-top: 10px;
        .item_name {
          margin-bottom: 8px;
          font-weight: 700;
          font-size: 14px;
          color: #2f2f2f;
        }
        .item_number {
          font-weight: 700;
          font-size: 12px;
          color: #2f2f2f;
          margin-bottom: 8px;
        }
        .item_time {
          font-weight: 400;
          font-size: 12px;
          color: #86909c;
          display: flex;
          .txt1 {
            margin-right: 10px;
          }
        }
      }
      .item_type {
        font-weight: 700;
        font-size: 12px;
        color: #ffffff;
        text-align: center;
        padding: 5px 10px;
        border-radius: 0px 4px 0px 4px;
        background: #ff2b2b;
        position: absolute;
        top: 0px;
        right: 0;
      }
    }
  }

  .groupInfo {
    .groupInfo_item {
      display: flex;
      align-items: center;
      position: relative;
      margin-bottom: 20px;
      .groupInfo_icon {
        height: 50px;
        width: 50px;
        background: rgba(255, 48, 33, 0.6);
        border-radius: 4px;
        text-align: center;
        line-height: 50px;
        font-size: 24px;
        color: #fff;
        margin-right: 10px;
      }
      .groupInfo_detail {
        font-size: 12px;
        color: #999;
        .groupInfo_name {
          font-size: 14px;
          font-weight: bold;
          margin-bottom: 2px;
          margin-bottom: 6px;
          color: #333;
          width: 200px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }
        .groupInfo_txt {
          margin-bottom: 6px;
          .groupInfo_span {
            margin-right: 5px;
          }
          .groupInfo_span1 {
            margin-left: 5px;
          }
        }
        .groupInfo_txt1 {
        }
      }
      .groupInfo_btn {
        position: absolute;
        top: 0;
        right: 0;
        font-size: 14px;
        color: #165dff;

        .to_chat {
            text-align: center;
            margin-top: 9px;
          }
      }
    }
  }
}
.no_icon {
  padding: 25px;
  .no_icon_img {
    width: 70px;
    display: block;
    margin: auto;
  }
  .no_icon_txt {
    font-weight: 400;
    font-size: 14px;
    color: #86909c;
    text-align: center;
    margin-top: 10px;
  }
}
.h600 {
  // max-height: 300px;
  overflow: auto;
}
.groupInfo_content {
  padding-bottom: 20px;
  margin-bottom: 30px;
  overflow: auto;
}
.userList_content {
  overflow: auto;
  .userList_item:last-child {
    margin-bottom: 0;
  }
}
.contact_list {
  padding: 0.5rem 0.2rem 0 0.2rem;
  .contact_item {
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .contact_lt {
    font-size: 0.28rem;
    color: #23ec1c;
    .contact_header {
      width: 30px;
      height: 30px;
      display: block;
      border-radius: 5px;
      margin-right: 5px;
    }

    .contact_name {
      font-size: 0.28rem;
      color: #333;
      margin-left: 5px;
      flex: 1;
    }

    .contact_com {
      color: #f65e07;
      font-size: 0.28rem;
    }
    .contact_com_wx {
      color: #23ec1c;
      font-size: 0.28rem;
      width: 50px;
      text-align: center;
    }
  }
  .membot {
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .contact_type {
    font-size: 14px;
    color: #999;
    margin-left: 5px;
  }

  .contact_btn {
    background: #409eff;
    color: #fff;
    padding: 5px 0;
    text-align: center;
    border-radius: 3px;
    font-size: 0.28rem;
    width: 60px;
  }
}
</style>
